/*
 * Created by Weiting on 2011/11/18
 * copyright 2011 III. All rights reserved.
 *
 */
package com.eslserver.to.wrapper;

import com.eslserver.to.Group;

public class GroupWrapper {
    private Group group;
    private Integer ESLCount;
    
    private GroupWrapper(Group group) {
        this.group = group;
    }
    
    public static GroupWrapper createGroupWrapper(Group group) {
        return new GroupWrapper(group);
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }

    public Integer getESLCount() {
        setESLCount(group.getEsls().size());
        return ESLCount;
    }

    public void setESLCount(Integer ESLCount) {
        this.ESLCount = ESLCount;
    }   
}
